package com.guigu.serviceorder.service;

import com.guigu.common_util.pojo.utils.Result;
import com.guigu.serviceorder.entity.TbPreferential;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2020-07-08
 */
public interface ITbPreferentialService extends IService<TbPreferential> {

    // 分页条件查询
    Result findPage(Map<String, Object> searchMap, Integer page, Integer size);

    /**
     * 根据分类和消费额查询优惠金额
     * @param categoryId
     * @param money
     * @return
     */
    public int findPreMoneyByCategoryId(Integer categoryId,int money);
}
